package ace.cmp.id.generator.snowflake.enums;

import ace.cmp.core.enums.BaseEnum;
import lombok.Getter;

/**
 * @author Caspar 账号注册来源
 */
public enum SnowflakeBuilderEnum implements BaseEnum<String> {
  HOST_IP_BUILDER("host_ip_builder", "根据IP地址自动配置dataCenterId与workerId"),
  MANUAL_BUILDER("config_builder", "手工配置snowflake dataCenterId与workerId"),
  ;
  @Getter private String code;
  @Getter private String desc;

  SnowflakeBuilderEnum(String code, String desc) {

    this.code = code;
    this.desc = desc;
  }
}
